package com.cqupt.pojo;

/**
 * 用户类
 */
public class User {
    /**
     * 用户id
     * 用户姓名 username
     * 用户密码 password
     * 真实姓名 realName
     * 所属组织 userOrganization
     * 权限角色 role
     */
    private String userId;
    private String username;
    private String password;
    private String realName;
    private String userOrganization;
    private String role;
    private String logSwitch;

    public String getLogSwitch() {
        return logSwitch;
    }

    public void setLogSwitch(String logSwitch) {
        this.logSwitch = logSwitch;
    }

    private int flag;

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    /**
     * 获取用户id
     * @return
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     * @param userId
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取用户姓名
     * @return
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置用户姓名
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取密码
     * @return
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置密码
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取真实姓名
     * @return
     */
    public String getRealName() {
        return realName;
    }

    /**
     * 设置真实姓名
     * @param realName
     */
    public void setRealName(String realName) {
        this.realName = realName;
    }

    /**
     * 获取组织名称
     * @return
     */
    public String getUserOrganization() {
        return userOrganization;
    }

    /**
     * 设置组织名称
     * @return
     */
    public void setUserOrganization(String userOrganization) {
        this.userOrganization = userOrganization;
    }

    /**
     * 获取权限角色
     * @return
     */
    public String getRole() {
        return role;
    }

    /**
     * 设置权限角色
     * @return
     */
    public void setRole(String role) {
        this.role = role;
    }

    /**
     * 有参构造函数
     * @param username
     * @param password
     * @param flag
     */
    public User(String username, String password, int flag) {
        this.username = username;
        this.password = password;
        this.flag = flag;
    }

    /**
     * 无参构造函数
     */
    public User() {
    }
}